package com.wedu.entity;

import java.util.Date;

public class User extends UserAccount {
    private String uid;//学号或教师编号
    private String name;//姓名
    private String password;//密码
    private int age;//年龄
    private String sex;//性别
    private String phone;//电话
    private String department;//所在院系
    private String date;//注册日期
    private int index;//登录次数

    public User() {
    }

    public User(String ACID, int credit_rating, int frequency, int frequency_t, String uid, String name, String password, int age, String sex, String phone, String department, String date) {
        super(ACID, credit_rating, frequency, frequency_t);
        this.uid = uid;
        this.name = name;
        this.password = password;
        this.age = age;
        this.sex = sex;
        this.phone = phone;
        this.department = department;
        this.date = date;
    }

    public int getIndex() {
        return index;
    }

    public void setIndex(int index) {
        this.index = index;
    }

    public String getUid() {
        return uid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getDepartment() {
        return department;
    }

    public void setDepartment(String department) {
        this.department = department;
    }

    public String  getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "User{" +
                "uid='" + uid + '\'' +
                ", name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", phone='" + phone + '\'' +
                ", department='" + department + '\'' +
                ", date='" + date + '\'' +
                ", index=" + index +
                '}';
    }
}
